package com.yny.administrator.android1607_meishi.utils;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;

/**
 * Created by Administrator on 2016/9/20.
 */
public class VideoDao {
    private final SQLiteDatabase mDb;
    public VideoDao(Context context) {
        DBHelper helper = new DBHelper(context);
        mDb = helper.getWritableDatabase();
    }
    //获取数据库对象
    public SQLiteDatabase getDb() {
        if (mDb != null) {
            return mDb;
        }
        return null;
    }
}
